package jp.co.ricoh.melody.views.activities;

import android.content.Context;
import android.database.Cursor;
import android.provider.MediaStore;

/**
 * Created by taoli on 2016/12/19.
 */

public class CoursUtil {
    private Cursor alarmsCursor=null;
    private Context mContext;
    public  CoursUtil(Context context)
    {
        this.mContext=context;
         alarmsCursor=mContext.getContentResolver().query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, null, null, null, MediaStore.Audio.Media.DEFAULT_SORT_ORDER);
    }

    public void closeCursor()
    {
        if (alarmsCursor!=null)
        {

            alarmsCursor.close();
        }
    }

}
